package brinary;

public class ComplementDemo {
    public static void main(String[] args) {
        /*
        int max=Integer.MAX_VALUE;
        int min=Integer.MIN_VALUE;
        System.out.println(Integer.toBinaryString(max));
        System.out.println(Integer.toBinaryString(min));
        System.out.println(Integer.toBinaryString(-1));

         */
        int a=-45;
        System.out.println(Integer.toBinaryString(a));//2进制显示
        System.out.println(a);//10进制显示
        System.out.println(Integer.toHexString(a));//16进制显示

    }
}
